﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="com.tiyma.web._Default" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>体验码</title>
     <link href="/style/index.css" rel="stylesheet" type="text/css" />

     
<SCRIPT type=text/javascript>
function changeSearchType(obj,event)
{
    var nav_ul=document.getElementById("nav_ul");
    for(var index=0;index<nav_ul.childNodes.length;index++)
    {
        nav_ul.childNodes[index].className="";
    }
    obj.parentNode.className="over";
	document.getElementById('main_search_type').innerHTML = obj.innerHTML;
	var k=document.getElementById("k");
	if(obj.innerText=="小说")
	{
	k.value="书名/作者/分类";
	}
	else
	{
	    k.value="";
	}
}
function GoSearch()
{
    var k=document.getElementById("k");
    if(k.value=="" || k.value=="书名/作者/分类")
    {
        alert("请输入关键字!");
        return false;
    }
    window.location.href="/book/S.aspx?k="+escape(k.value);
}
function TabSearch(evt) { evt = evt || window.event; if (evt && evt.keyCode == 13) return GoSearch(evt); };
</SCRIPT>

</head>
<body>

   
<DIV class=m_logo><A hideFocus 
style="OUTLINE-STYLE: none; OUTLINE-COLOR: invert; OUTLINE-WIDTH: medium" 
title="体验码" href="#"><IMG border=0 alt="体验码" 
src="/images/logo.png"></A></DIV>
<DIV style="MARGIN-TOP: 20px" class=margin_nav_bg>
<DIV id=main_nav>
<UL id="nav_ul">
  <LI class=over><A id=as_product 
  onclick="changeSearchType(this,event);return false;" 
  href="javascript:;">小说</A></LI>
  <LI><A id=as_corp onclick="changeSearchType(this,event);return false;" 
  href="javascript:;">影视</A></LI>
  <LI><A onclick="changeSearchType(this,event);return false;" 
  href="javascript:;">工作</A></LI>
  <LI><A onclick="changeSearchType(this,event);return false;" 
  href="javascript:;">健康</A></LI></UL></DIV></DIV>
<DIV id=main_search>
<UL>
  <LI class=text><FONT id=main_search_type>小说</FONT>搜索：</LI>
  <LI class=input_w><input  id="k" value="书名/作者/分类"  onkeypress="return TabSearch(event);" onclick="if(this.value=='书名/作者/分类'){this.value='';}this.style.color='#000';" /></LI>
  <LI class="btn e"><input onclick="javascript:GoSearch();" src="/images/search_btn.gif" type="image" /></LI></UL></DIV>
<DIV class=hot_so_all>
<DIV class="hot_so clear_float">
<H5>书名搜索：</H5>
<DIV class=hot_text>
<%=m_book_key_list%></DIV></DIV>
<DIV class=hot_so>
<H5>作者搜索：</H5>
<DIV class=hot_text>
<%=m_author_key_list%></DIV></DIV>
<DIV class=clear_float></DIV></DIV>

<DIV class=foot>

<DIV 
class=s2>Copyright 
&copy; 体验码&nbsp;<IMG border=0 align=absMiddle 
src="/images/gn.gif">浙ICP备10004041号-1
</DIV></DIV>
<div style="display:none;">
<script language="javascript" type="text/javascript" src="http://js.users.51.la/5235051.js"></script>
</div>

</body>
</html>
